package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@TableName("nation_line")
@Entity
public class Major {
    @Id
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    private String nationClass; // 专业名称
    private int year; // 年份
    private int line; // 分数线
    private int pol;
    private int en;
    private int fir;
    private int sec;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNationClass() {
        return nationClass;
    }

    public void setNationClass(String nationClass) {
        this.nationClass = nationClass;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }


}
